/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package interfaz;

import javax.swing.JButton;

/**
 *
 * @author pedro
 */
public class PPrincipal extends javax.swing.JPanel {

    /**
     * Creates new form PPrincipal2
     */
    public PPrincipal() {
        initComponents();
    }

    public JButton getContinuar() {
        return Continuar;
    }

    public JButton getElegir() {
        return Elegir;
    }

    public JButton getJugar() {
        return Jugar;
    }
    
    public String getUser(){
        return txtUser.getText();
    }


    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        Continuar = new javax.swing.JButton();
        Jugar = new javax.swing.JButton();
        Elegir = new javax.swing.JButton();
        txtUser = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();

        setLayout(null);

        Continuar.setText("Continuar");
        Continuar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ContinuarActionPerformed(evt);
            }
        });
        add(Continuar);
        Continuar.setBounds(237, 229, 152, 78);

        Jugar.setText("Jugar");
        add(Jugar);
        Jugar.setBounds(237, 313, 152, 78);

        Elegir.setText("Elegir nivel");
        add(Elegir);
        Elegir.setBounds(237, 397, 152, 78);
        add(txtUser);
        txtUser.setBounds(547, 16, 137, 28);

        jLabel1.setText("Usuario");
        add(jLabel1);
        jLabel1.setBounds(481, 22, 48, 16);
    }// </editor-fold>//GEN-END:initComponents

    private void ContinuarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ContinuarActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_ContinuarActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton Continuar;
    private javax.swing.JButton Elegir;
    private javax.swing.JButton Jugar;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JTextField txtUser;
    // End of variables declaration//GEN-END:variables
}
